# 使用内建函数解法
def MM(fst,scd,*args,**kwargs):
    nums = (fst,scd,*args,*[v for v in kwargs.values()])
    return max(nums),min(nums)

max,min = MM(3,5,1,x=88,y=-1)
print("最大值是：{}\n最小值是：{}".format(max,min))

#使用排序法
def mm(fst,scd,*args,**kwargs):
    nums = [fst, scd, *args, *[v for v in kwargs.values()]]
    lnums= len(nums)
    for i in range(lnums-1):
        swch = False
        for j in range(lnums-1-i):
            if nums[j] > nums[j+1]:
                nums[j],nums[j+1] = nums[j+1],nums[j]
                swch = True
        if swch == False:
            break
    return nums[-1],nums[0]
max,min = mm(600,663,12.5,x=8,y=-1)
print("最大值是：{}\n最小值是：{}".format(max,min))


